package cn.com.thinker.core.module.service.impl;

import cn.com.thinker.core.module.dao.mapper.UserMapper;
import cn.com.thinker.core.module.entity.User;
import cn.com.thinker.core.module.service.IUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *
 * User 表数据服务层接口实现类
 *
 */
@Service("userService")
@Slf4j
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

	@Override
	@Transactional
	public boolean deleteAll() {
		return retBool(baseMapper.deleteAll());
	}

	@Override
	public List<User> selectListBySQL() {
		return baseMapper.selectListBySQL("crazyhc");
	}


}